package com.tyqx.hashchainbiz.service.impl;

import com.tyqx.hashchainbean.module.JZTGS1Relationship;
import com.tyqx.hashchainbean.module.JZTLogisticsRelationship;
import com.tyqx.hashchainbean.vo.JZTGS1RelationshipVO;
import com.tyqx.hashchainbiz.service.JZTGS1RelationshipService;
import com.tyqx.hashchaindao.mapper.JZTGS1RelationshipMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("jztGS1RelationshipService")
public class JZTGS1RelationshipServiceImpl implements JZTGS1RelationshipService {

    @Resource
    private JZTGS1RelationshipMapper jztgs1RelationshipMapper;

    @Override
    public Integer addJZTGS1Relationship(JZTGS1Relationship jztgs1Relationship) {
        return jztgs1RelationshipMapper.addJZTGS1Relationship(jztgs1Relationship);
    }

    @Override
    public List<String> getTraceabilityCodeBySSccCode(String ssccCode) {
        return jztgs1RelationshipMapper.getTraceabilityCodeBySSccCode(ssccCode);
    }

    @Override
    public Integer insertBatch(List<JZTGS1Relationship> jztgs1RelationshipList) {
        return jztgs1RelationshipMapper.insertBatch(jztgs1RelationshipList);
    }

    @Override
    public List<JZTGS1RelationshipVO> getJZTGS1RelationshipListBySSccCode(String ssccCode) {
        return jztgs1RelationshipMapper.getJZTGS1RelationshipListBySSccCode(ssccCode);
    }

    @Override
    public List<JZTGS1RelationshipVO> getJZTGS1RelationshipListByTraceabilityCode(String traceabilityCode) {
        return jztgs1RelationshipMapper.getJZTGS1RelationshipListByTraceabilityCode(traceabilityCode);
    }
}
